import Ember from 'ember';
import config from 'mall-app-front/config/environment';

export default Ember.Route.extend({
  model(params, transition) {
    return {
      "id": "1",
      "name": "潮流",
      "parentId": "",
      "thumb": "",
      "description": "潮流一级",
      "sortOrder": 0,
      "adUri": "",
      "adImage": "",
      "enabled": false,
      "home": false,
      "level": 1,
      "children": [
        {
          "id": "1",
          "name": "潮流",
          "parentId": "",
          "thumb": "",
          "description": "潮流一级",
          "sortOrder": 0,
          "adUri": "",
          "adImage": "",
          "enabled": false,
          "home": false,
          "level": 1,
          "children": [
            {
              "id": "11",
              "name": "庞克",
              "parentId": "1",
              "thumb": "",
              "description": "潮流下的二级",
              "sortOrder": 0,
              "adUri": "",
              "adImage": "",
              "enabled": false,
              "home": false,
              "level": 2,
              "children": []
            }
          ]
        },
        {
          "id": "cdc8cc61029113a42cfe364092cf6428",
          "name": "3",
          "parentId": "",
          "thumb": "http://192.168.1.220/images/2016/10/9ca1b634ca7f9cdd1895d90f38a8cede.jpg",
          "description": "3",
          "sortOrder": 1,
          "adUri": "3",
          "adImage": "http://192.168.1.220:9080/images/2016/10/ac33a445e933460997813231da417f6d.jpg",
          "enabled": true,
          "home": false,
          "level": 1,
          "children": []
        },
        {
          "id": "00b9594084dc339e027f17b6350adbf9",
          "name": "dsadsadasd",
          "parentId": "",
          "thumb": "http://192.168.1.220/images/2016/10/9ca1b634ca7f9cdd1895d90f38a8cede.jpg",
          "description": "",
          "sortOrder": 2,
          "adUri": "",
          "adImage": "",
          "enabled": false,
          "home": false,
          "level": 1,
          "children": []
        },
        {
          "id": "9be46280c44358648a401d4c9f01564e",
          "name": "1",
          "parentId": "",
          "thumb": "http://192.168.1.220/images/2016/10/86086518d6689dbaa76cd17b4232577a.jpg",
          "description": "1",
          "sortOrder": 3,
          "adUri": "1",
          "adImage": "",
          "enabled": true,
          "home": false,
          "level": 1,
          "children": []
        },
        {
          "id": "68a95e353042607545e5d648dfe1a45b",
          "name": "2",
          "parentId": "",
          "thumb": "http://192.168.1.220/images/2016/10/4c11b13c22a37cb2e0da01f7c24b6397.jpg",
          "description": "2",
          "sortOrder": 4,
          "adUri": "2",
          "adImage": "2016/10/28b9f00d94bbbc0249110f134e375c86.jpg",
          "enabled": true,
          "home": false,
          "level": 1,
          "children": []
        },
        {
          "id": "3654d7acc4648c0a15ed89f44cc82a0c",
          "name": "22",
          "parentId": "",
          "thumb": "http://www.localhost:8080/file/images/2016/10/b817f3cdcd075c1fa47ae72d0b3b5411.jpg",
          "description": "",
          "sortOrder": 5,
          "adUri": "",
          "adImage": "",
          "enabled": false,
          "home": false,
          "level": 1,
          "children": []
        },
        {
          "id": "8e4b159f934a358a4066d97dcf43b55e",
          "name": "fsafsd",
          "parentId": "",
          "thumb": "",
          "description": "",
          "sortOrder": 6,
          "adUri": "",
          "adImage": "",
          "enabled": false,
          "home": false,
          "level": 1,
          "children": []
        }
      ]
    };
    //return Ember.$.getJSON(config.rootURL + "api/productCategories/" + params.cate_id);
  }
});
